package com.csun.cmny.provider.pojo;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class CacOldman implements Serializable {
    private Integer cacId;

    private String cacNo;

    private Integer cacType;

    private Integer oldmanId;

    private String egname;

    private Integer preGrade;

    private String changeReason;

    //护理等级id
    private Long levelCareId;

    //护理等级名称
    private String levelCareName;

    private String evaluator;

    private String evaluatorSignDate;

    private String egnameSignDate;

    private String videoId;

    private Integer homeId;

    private Integer valid;

    private Date createTime;

    private Date modifyTime;

    private Long modifier;

    private static final long serialVersionUID = 1L;

    public Integer getCacId() {
        return cacId;
    }

    public void setCacId(Integer cacId) {
        this.cacId = cacId;
    }

    public String getCacNo() {
        return cacNo;
    }

    public void setCacNo(String cacNo) {
        this.cacNo = cacNo;
    }

    public Integer getCacType() {
        return cacType;
    }

    public void setCacType(Integer cacType) {
        this.cacType = cacType;
    }

    public Integer getOldmanId() {
        return oldmanId;
    }

    public void setOldmanId(Integer oldmanId) {
        this.oldmanId = oldmanId;
    }

    public String getEgname() {
        return egname;
    }

    public void setEgname(String egname) {
        this.egname = egname;
    }

    public Integer getPreGrade() {
        return preGrade;
    }

    public void setPreGrade(Integer preGrade) {
        this.preGrade = preGrade;
    }

    public String getChangeReason() {
        return changeReason;
    }

    public void setChangeReason(String changeReason) {
        this.changeReason = changeReason;
    }


    public String getEvaluator() {
        return evaluator;
    }

    public void setEvaluator(String evaluator) {
        this.evaluator = evaluator;
    }

    public String getEvaluatorSignDate() {
        return evaluatorSignDate;
    }

    public void setEvaluatorSignDate(String evaluatorSignDate) {
        this.evaluatorSignDate = evaluatorSignDate;
    }

    public String getEgnameSignDate() {
        return egnameSignDate;
    }

    public void setEgnameSignDate(String egnameSignDate) {
        this.egnameSignDate = egnameSignDate;
    }

    public String getVideoId() {
        return videoId;
    }

    public void setVideoId(String videoId) {
        this.videoId = videoId;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Integer getHomeId() {
        return homeId;
    }

    public void setHomeId(Integer homeId) {
        this.homeId = homeId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Long getModifier() {
        return modifier;
    }

    public void setModifier(Long modifier) {
        this.modifier = modifier;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CacOldman other = (CacOldman) that;
        return (this.getCacId() == null ? other.getCacId() == null : this.getCacId().equals(other.getCacId()))
                && (this.getCacNo() == null ? other.getCacNo() == null : this.getCacNo().equals(other.getCacNo()))
                && (this.getCacType() == null ? other.getCacType() == null : this.getCacType().equals(other.getCacType()))
                && (this.getOldmanId() == null ? other.getOldmanId() == null : this.getOldmanId().equals(other.getOldmanId()))
                && (this.getEgname() == null ? other.getEgname() == null : this.getEgname().equals(other.getEgname()))
                && (this.getPreGrade() == null ? other.getPreGrade() == null : this.getPreGrade().equals(other.getPreGrade()))
                && (this.getChangeReason() == null ? other.getChangeReason() == null : this.getChangeReason().equals(other.getChangeReason()))
                && (this.getEvaluator() == null ? other.getEvaluator() == null : this.getEvaluator().equals(other.getEvaluator()))
                && (this.getEvaluatorSignDate() == null ? other.getEvaluatorSignDate() == null : this.getEvaluatorSignDate().equals(other.getEvaluatorSignDate()))
                && (this.getEgnameSignDate() == null ? other.getEgnameSignDate() == null : this.getEgnameSignDate().equals(other.getEgnameSignDate()))
                && (this.getVideoId() == null ? other.getVideoId() == null : this.getVideoId().equals(other.getVideoId()))
                && (this.getHomeId() == null ? other.getHomeId() == null : this.getHomeId().equals(other.getHomeId()))
                && (this.getValid() == null ? other.getValid() == null : this.getValid().equals(other.getValid()))
                && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
                && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
                && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCacId() == null) ? 0 : getCacId().hashCode());
        result = prime * result + ((getCacNo() == null) ? 0 : getCacNo().hashCode());
        result = prime * result + ((getCacType() == null) ? 0 : getCacType().hashCode());
        result = prime * result + ((getOldmanId() == null) ? 0 : getOldmanId().hashCode());
        result = prime * result + ((getEgname() == null) ? 0 : getEgname().hashCode());
        result = prime * result + ((getPreGrade() == null) ? 0 : getPreGrade().hashCode());
        result = prime * result + ((getChangeReason() == null) ? 0 : getChangeReason().hashCode());
        result = prime * result + ((getEvaluator() == null) ? 0 : getEvaluator().hashCode());
        result = prime * result + ((getEvaluatorSignDate() == null) ? 0 : getEvaluatorSignDate().hashCode());
        result = prime * result + ((getEgnameSignDate() == null) ? 0 : getEgnameSignDate().hashCode());
        result = prime * result + ((getVideoId() == null) ? 0 : getVideoId().hashCode());
        result = prime * result + ((getHomeId() == null) ? 0 : getHomeId().hashCode());
        result = prime * result + ((getValid() == null) ? 0 : getValid().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cacId=").append(cacId);
        sb.append(", cacNo=").append(cacNo);
        sb.append(", cacType=").append(cacType);
        sb.append(", oldmanId=").append(oldmanId);
        sb.append(", egname=").append(egname);
        sb.append(", preGrade=").append(preGrade);
        sb.append(", changeReason=").append(changeReason);
        sb.append(", evaluator=").append(evaluator);
        sb.append(", evaluatorSignDate=").append(evaluatorSignDate);
        sb.append(", egnameSignDate=").append(egnameSignDate);
        sb.append(", videoId=").append(videoId);
        sb.append(", homeId=").append(homeId);
        sb.append(", valid=").append(valid);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", modifier=").append(modifier);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}